<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


//Route::get('/', 'HomeController@index')->name('index');
Route::resource('/', 'PagesController');
Auth::routes();

Route::resource('socials', 'SocialsController');
//Route::get('tags_test', 'TagsController@show');
//Route::get('/home', 'HomeController@index')->name('home');
Route::get('/touxiang', 'CategoriesController@touxiang')->name('touxiang');
Route::resource('pictuers', 'PictuersController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]);

//Route::resource('tags', 'TagsController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]);
//
// Route::resource('/:id/new', 'PictuersController@index')->name('pictuers.index');
//Route::get('/{tag}/new', 'TagsController@index')->name('tags.index');

Route::resource('collects', 'CollectsController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]);
Route::get('pictuers', 'PictuersController@index')->name('pictuers.index');
